<?php 
	/**
	 * 前台视图
	 */
	class IndexAction extends Action{
		public function index(){
			import('ORG.Util.Page');
			$count=M('Blog')->count();
			$page=new Page($count,6);
			$page->url="Index/Index/index/p";
			$limit=$page->firstRow.','.$page->listRows;
			$this->blogs=D('BlogRelation')->getBlogs($limit,0);
			$page->setConfig("theme","  %first%  %prePage%  %linkPage%  %nextPage% %end%");
			$this->page=$page->show();
			$this->display();
		}

	}